import Vue from 'vue'
import VueRouter from 'vue-router'

import Reg from "../views/Reg/Reg.vue";

import Login from "@/views/Login/Login.vue";

Vue.use(VueRouter)

// 路由规则
const routes = [
  {
    path:'/reg',
    name:'reg',
    component:Reg
  },
  {
    path:'/login',
    name:'login',
    component:Login
  }
  
]
// 创建路由实例
const router = new VueRouter({
  // 挂载路由
  routes
})

export default router
